home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / share / automake-1.8 / am / install.am < prev    next >
Encoding:
Text File  |  2005-10-16  |  3.6 KB  |  96 lines

  1. ## automake - create Makefile.in from Makefile.am
  2. ## Copyright (C) 2001, 2002, 2003, 2004  Free Software Foundation, Inc.
  3.  
  4. ## This program is free software; you can redistribute it and/or modify
  5. ## it under the terms of the GNU General Public License as published by
  6. ## the Free Software Foundation; either version 2, or (at your option)
  7. ## any later version.
  8.  
  9. ## This program is distributed in the hope that it will be useful,
  10. ## but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12. ## GNU General Public License for more details.
  13.  
  14. ## You should have received a copy of the GNU General Public License
  15. ## along with this program; if not, write to the Free Software
  16. ## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  17. ## 02111-1307, USA.
  18.  
  19. ## ----------------------------------------- ##
  20. ## installdirs -- Creating the installdirs.  ##
  21. ## ----------------------------------------- ##
  22.  
  23. ## The reason we loop over %am__installdirs% (instead of simply running
  24. ## `$(mkdir_p) %am__installdirs%') is that directories variable such as
  25. ## `"$(DESTDIR)$(mydir)"' can potentially expand to `""' if `$(mydir)'
  26. ## is conditionally defined.  BTW, those directories are quoted in
  27. ## order to support installation paths with spaces.
  28.  
  29. if %?SUBDIRS%
  30. .PHONY: installdirs installdirs-am
  31. RECURSIVE_TARGETS += installdirs-recursive
  32. installdirs: installdirs-recursive
  33. installdirs-am:%installdirs-local%
  34. ?am__installdirs?    for dir in %am__installdirs%; do \
  35. ?am__installdirs?      test -z "$$dir" || $(mkdir_p) "$$dir"; \
  36. ?am__installdirs?    done
  37. else !%?SUBDIRS%
  38. .PHONY: installdirs
  39. installdirs:%installdirs-local%
  40. ?am__installdirs?    for dir in %am__installdirs%; do \
  41. ?am__installdirs?      test -z "$$dir" || $(mkdir_p) "$$dir"; \
  42. ?am__installdirs?    done
  43. endif !%?SUBDIRS%
  44.  
  45.  
  46. ## ----------------- ##
  47. ## Install targets.  ##
  48. ## ----------------- ##
  49.  
  50. .PHONY: install install-exec install-data uninstall
  51. .PHONY: install-exec-am install-data-am uninstall-am
  52.  
  53. if %?SUBDIRS%
  54. RECURSIVE_TARGETS += install-data-recursive install-exec-recursive \
  55.              install-recursive uninstall-recursive
  56. install:%maybe_BUILT_SOURCES% install-recursive
  57. install-exec: install-exec-recursive
  58. install-data: install-data-recursive
  59. uninstall: uninstall-recursive
  60. else !%?SUBDIRS%
  61. install:%maybe_BUILT_SOURCES% install-am
  62. install-exec: install-exec-am
  63. install-data: install-data-am
  64. uninstall: uninstall-am
  65. endif !%?SUBDIRS%
  66.  
  67. .PHONY: install-am
  68. install-am: all-am
  69.     @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
  70.  
  71.  
  72. .PHONY: installcheck
  73. ?SUBDIRS?installcheck: installcheck-recursive
  74. ?!SUBDIRS?installcheck: installcheck-am
  75. ?!SUBDIRS?.PHONY: installcheck-am
  76. ?!SUBDIRS?installcheck-am:
  77.  
  78. ## If you ever modify this, keep in mind that INSTALL_PROGRAM is used
  79. ## in subdirectories, so never set it to a value relative to the top
  80. ## directory.
  81. .PHONY: install-strip
  82. install-strip:
  83. ## Beware that they are two variables used to install programs:
  84. ##   INSTALL_PROGRAM is used for ordinary *_PROGRAMS
  85. ##   install_sh_PROGRAM is used for nobase_*_PROGRAMS (because install-sh
  86. ##                                                     creates directories)
  87. ## It's OK to override both with INSTALL_STRIP_PROGRAM, because
  88. ## INSTALL_STRIP_PROGRAM uses install-sh (see m4/strip.m4 for a rational).
  89. ##
  90. ## Use double quotes here because we might need to interpolate some
  91. ## backquotes at runtime.
  92.     $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
  93.       install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
  94.       `test -z '$(STRIP)' || \
  95.         echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
  96.